#/bin/sh
HEAD="Content-Type:application/json"
METHOD=POST
CLIENT_ID=`cat config.ini | grep dev_id | awk -F '=' '{print $2}' | sed 's/ //g'`
CLIENT_SECRET="123456"
DATA='{"clientId":'\"${CLIENT_ID}\"',"clientSecret":'\"${CLIENT_SECRET}\"'}'
URL=http://xxx/xxx

curl -H ${HEAD}  -X ${METHOD} --data ${DATA} ${URL}